//
// Created by jsjxsy on 2022/7/12.
//
#include <stdio.h>
#include <ctype.h>
#define MAX_SIZE 20

char *getchar_n(char arr[], int n) {
  int count = 0;
  while (1) {
    char temp = getchar();
    if (count >= n || temp == '\t'
        || isspace(temp) || temp == '\n') {
      break;
    }
    arr[count++] = temp;
  }
  arr[count] = '\0';
  return arr;
}

int main(void) {
  char str[MAX_SIZE];
  getchar_n(str, 10);
  puts(str);
  return 0;
}

